from django.conf.urls import url

from verifications import views

urlpatterns={
    # 当路由需要reverse,重定向时,加上name参数
    url(r"image_codes/(?P<image_code_id>[\w-]+)/$",views.ImageCodeView.as_view()),
    url(r'sms_codes/(?P<mobile>1[3-9]\d{9}/$)',views.SMSCodeView.as_view()),
}